package cn.edu.gdpt.mobile213.mobile2121606097wjc0416;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import android.os.Bundle;

public class MainActivity extends AppCompatActivity {
    private RecyclerView rvmainname;
    private String[] names={"广东职业技术学院","佛山职业技术学院","深圳职业技术学院","番禺职业技术学院","东莞职业技术学院","珠海职业技术学院","河源职业技术学院","惠州职业技术学院","梅州职业技术学院","清远职业技术学院",};
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initview();
        rvmainname.setLayoutManager(new LinearLayoutManager(this));
        nameadapter adapter=new nameadapter(names);
        rvmainname.setAdapter(adapter);
    }

    private void initview() {
        rvmainname=(RecyclerView) findViewById(R.id.rvmainname);
    }
}